<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/include/taglib.jsp"%>
<html>
	<head>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no">
		<meta charset="UTF-8">
		<title>实名认证_共富网_Gofull.com.cn</title>
		<script src="/v3/js/jquery-1.10.2.min.js" type="text/javascript"></script>
		<link type="text/css" rel="stylesheet" href="/v3/css/wstyle.css">
		<link type="text/css" rel="stylesheet" href="/v3/css/account.css">
	</head>
	<body>
		<div id="wrap">
			<div class="input-box">
			<div class="login_input">
				<div class="r_line">
				<i class="icon-rName"></i>
				</div>
				<div class="in_put"><input placeholder="请输入真实姓名" id="realName" name="realName" maxlength="11" type="text"></div>
			</div>
			<div class="login_input id_area">
				<div class="r_line">
				<i class="icon-idCard"></i>
				</div>
				<div class="in_put"><input placeholder="请输入身份证号" id="idCard" name="idCard" maxlength="17" type="tel"></div>
			</div>
			</div>
			<div class="Nxt-btn"><a href="#" onclick="javascript:checkRealName()">确认</a></div>
			
			<section id="zhezhao" class="zhezhao"></section>
			<div id="showTs" class="showTs">
				<div class="tishi">
				<h1>提示</h1>
				<p id="message-tishi"></p>
				<span id="sure-bt">确定</span>
				</div>
			</div>
		</div>
		<jsp:include page="/include/v3/footer.jsp"></jsp:include>
	</body>

<script type="text/javascript">
	var bto = document.getElementById('sure-bt');
	
	function checkRealName(){
		var realName = $("#realName").val();
	    var idCard = $("#idCard").val();
	    if(realName =="" || realName ==null){
	    	showAlert("请输入真实姓名");
	    }
		else if(idCard =="" || idCard ==null){
             showAlert("您输入的身份证号有误，请重新输入");
			return false;
		}else if(!isMobel(mobile)){
             showAlert("您输入的身份证有误，请重新输入");
			return false;
		}else{
		    $("#loginPassword").submit();
			return true;
		}
	}
	
	bto.onclick = function (){
		hideAlert();
	};
		
	function showAlert(str){
			$("#zhezhao").show();
			$("#showTs").show();
			$("#message-tishi").text(str);
     }
	
	 $("#sure-bt").click(function (){
			hideAlert();
	 });

	 function hideAlert(){		 
			$("#zhezhao").hide();
			$("#showTs").hide();

	}
	
	window.onload = function (){
		var mobileErr= document.getElementById("mobileErr");
		if(mobileErr){
			showAlert("您输入的手机号有误，请重新输入");
		}
	}
</script>
</html>
